package com.uniview.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.uniview.dao.ExceptionLogDao;
import com.uniview.entity.po.ExceptionLog;
import com.uniview.service.ExceptionLogService;

@Service("exceptionLogService")
public class ExceptionLogServiceImpl implements ExceptionLogService {
	
	@Autowired
	private ExceptionLogDao exceptionLogDao;

	@Override
	public Integer saveExceptionLog(ExceptionLog log) throws Exception {
		return (Integer)exceptionLogDao.save(log);
	}

	@Override
	public boolean deleteExceptionLog(Integer id) throws Exception{
		return exceptionLogDao.deleteById(id);
	}

}
